#ifndef MYPUSHBUTTON_H
#define MYPUSHBUTTON_H

#include <QPushButton>
#include <QMouseEvent>

class myPushButton : public QPushButton
{
       Q_OBJECT
public:
       //构造函数 参数1 正常显示的图片路径  参数2 按下后显示的图片路径
       myPushButton(QString normalimg,QString pressimg="");
       //成员属性 保存传入的显示路径
       QString normalimgPath;
       QString pressimgPath;

       void mousePressEvent(QMouseEvent *e);
       void mouseReleaseEvent(QMouseEvent *e);

signals:

};

#endif // MYPUSHBUTTON_H
